<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:jsd="http://www.cycle99.com/tools/ecmadoc"
	xmlns:math="http://www.cycle99.com/tools/ecmadoc/transform/math"
	xmlns:help="http://www.cycle99.com/tools/ecmadoc/transform/help"
	xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="jsd math help">

	<xsl:include href="common.xslt"/>

	<xsl:template match="/" mode="head-current">
		<script type="text/javascript" language="javascript" src="scripts/main.js"></script>
	</xsl:template>

	<xsl:template match="/" mode="content">
		<xsl:apply-templates select="." mode="default-toc"/>
		<div id="sizer"></div>
		<xsl:apply-templates select="." mode="default-main"/>
	</xsl:template>

	<xsl:template match="/" mode="default-toc">
		<div id="toc">
			<div id="toc_selector">
				<h1><xsl:value-of select="project/@name"/></h1>
				<h2>ECMADoc API Documentaion</h2>
				<div id="switches">
					<a id="switch_contents" href="#" class="switch active">
						<span>Contents</span>
					</a>
					<a id="switch_index" href="#" class="switch">
						<span>Index</span>
					</a>
				</div>
			</div>
			<div id="toc_contents">
				<iframe src="contents.html" frameborder="no" name="toc" id="contents_frame" class="active"></iframe>
				<iframe src="memberindex.html" frameborder="no" name="index" id="index_frame"></iframe>
			</div>
		</div>
	</xsl:template>

	<xsl:template match="/" mode="default-main">
		<div id="main">
			<iframe src="project.html" frameborder="no" name="main"></iframe>
		</div>
	</xsl:template>

	<xsl:template match="/" mode="title-page"/>

</xsl:stylesheet>
